//
//  HomeListCollectionView.swift
//  ManBetX
//
//  Created by Cocoa on 2020/4/27.
//  Copyright © 2020 Fullen. All rights reserved.
//

import UIKit

// 登录成功回调
typealias LayoutSubviewsCallback = () -> Void

class HomeListCollectionView: UICollectionView {
    
    var layoutSubviewsCallback: LayoutSubviewsCallback?
 
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        
    }
    
    override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
        super.init(frame: frame, collectionViewLayout: layout)
        
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        if self.layoutSubviewsCallback != nil {
            self.layoutSubviewsCallback!()
        }
    }
}
